Note
interface Note
This module provides methods to manage and interact with notes associated with the connected user. Users can retrieve, create, update, and delete notes, as well as associate notes with messages. Changes to the note list can be monitored for real-time updates.
Properties
Functions
Link copied to clipboard
abstract fun createNote(text: String?, category: String?, additionalDescription: String? = null, position: Int? = 0, listener: RainbowListener<Note, NoteRepository.CreateNoteError>? = null)
Creates a Note associated with a specific category.
Link copied to clipboard
abstract fun createNoteFromMessage(message: IMMessage?, conversation: IRainbowConversation?, category: String?, position: Int? = 0, listener: RainbowListener<Note, NoteRepository.CreateNoteError>? = null)
Creates a Note associated with a message and a specific category.
Link copied to clipboard
Deletes a Note.
Link copied to clipboard
Deletes a Note associated with a message.
Link copied to clipboard
abstract fun fetchNotes(category: String? = null, withResolution: Boolean = false, listener: RainbowListener<Map<String, List<Note>>, Unit>? = null)
Refreshes the Note list of the connected user.
Link copied to clipboard
abstract fun updateNote(note: Note, newCategory: String? = null, newPosition: Int? = null, listener: RainbowListener<Unit, Unit>? = null)
Updates a Note category.